import http from '@src/util/http' 


/**
 * @description 删除服务
 */
 export function servicePriceDelete(params = {}) {
    return http.post('/service/price/delete', params, false);
}

/**
 * @description 服务项目列表
 */
 export function servicePriceList(params = {}) {
    return http.post('/service/price/list/page', params);
}

/**
 * @description 服务项目记录列表
 */
 export function servicePriceRecord(params = {}) {
    return http.post('/service/price/record/list/page', params);
}

/**
 * @description 服务项目记录详情
 */
 export function servicePriceDetailById(params = {}) {
    return http.get(`/service/price/get/${params.id}`);
}

/**
 * @description 修改状态
 */
 export function servicePriceChangeStatus(params = {}) {
    return http.post('/service/price/changeState', params, false);
}

/**
 * @description 高级搜索名称列表
 */
 export function servicePriceGetServiceList(params = {}) {
    return http.get('/service/price/getServiceList', params, false);
}

/**
 * @description 新建服务项目
 */
 export function servicePriceCreate(params = {}) {
    return http.post('/service/price/create', params, false);
}

/**
 * @description 编辑服务项目
 */
 export function servicePriceUpdate(params = {}) {
    return http.post('/service/price/update', params, false);
}

/**
 * @description 校验编号
 */
 export function servicePriceCheckNumberDuplicate(params = {}) {
    return http.get('/service/price/checkNumberDuplicate', params, false);
}

/**
 * @description 创建备注
 */
 export function servicePriceCreateRemark(params = {}) {
    return http.post('/service/price/remarkLog/create', params, false);
}

/**
 * @description 删除备注
 */
 export function servicePriceDeleteRemark(params = {}) {
    return http.post('/service/price/remarkLog/logicDelete', params, false);
}

/**
 * @description 获取信息动态
 */
 export function servicePriceLog(params = {}) {
    return http.get('/service/price/log', params);
}

/**
 * @description 获取服务项目编辑页面所需的其他信息
 */
 export function servicePriceEditInfo(params = {}) {
    return http.post('/service/price/edit/info', params, false);
}

/**
 * @description 获取服务项目详情页面所需的其他信息
 */
 export function servicePriceViewInfo(params = {}) {
    return http.post('/service/price/view/info', params, false);
}

/**
 * @description 获取服务项目列表页面所需的其他信息
 */
 export function servicePriceListInfo(params = {}) {
    return http.post('/service/price/list/info', params, false);
}

/**
 * @description 获取服务记录页面所需的其他信息
 */
 export function servicePriceRecordInfo(params = {}) {
    return http.post('/service/price/record/list/info', params, false);
}
/**
 * @description 获取服务记录页面所需的其他信息
 */
 export function batchUpdateField(params = {}) {
    return http.post('/service/price/batchUpdateField', params);
}

// 区域定价
// 区域定价列表查询
export function getAreaPriceList(params = {}) {
    return http.post('/api/app/outside/area/price/list', params);
}
// 保存区域定价
export function getAreaPriceSave(params = {}) {
    return http.post('/api/app/outside/area/price/save', params);
}
// 区域定价修改优先级
export function getAreaPricePrimary(params = {}) {
    return http.post('/api/app/outside/area/price/primary', params);
}
// 删除区域定价
export function getAreaPriceDelete(params = {}) {
    return http.get(`/api/app/outside/area/price/delete`, params);
}